package com.first.nell.extend

import com.first.nell.network.ApiUrl

fun String.toFirstNellPathFirstNellFormat(): String {
    if (this.startsWith("/")) return this
    else return ("/$this")
}

fun String.toFirstNellAfricaFirstNellPathFirstNellFormat(): String {
    val gPath = toFirstNellPathFirstNellFormat()
    return ApiUrl.BASE_URL_AFRICA + gPath
}

fun String.toFirstNellVietnamFirstNellPathFirstNellFormat(): String {
    val gPath = toFirstNellPathFirstNellFormat()
    return ApiUrl.BASE_URL_VND + gPath
}

fun String.toFirstNellFullFirstNellUrlFirstNellPath(): String {
    return (ApiUrl.BASE_URL + ApiUrl.BASE_PATH + this)
//    val fullUrl = (ApiUrl.BASE_URL + ApiUrl.BASE_PATH + this)
//    println("=============fullUrl $fullUrl")
//    return  fullUrl
}

fun String.toFirstNellCombineFirstNellUrlFirstNellPath(): String {
    return (ApiUrl.BASE_PATH + this)
}
